package com.zt.dev.physicalequipment.mapper;

import com.zt.dev.physicalequipment.pojo.PhysicalType;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface PhysicalTypeMapper {

    int insert(PhysicalType type);

    int update(PhysicalType type);

    int delete(Integer id);

    int deletes(Integer[] ids);

    int deleteByeId(Integer equipmentId);

    List<PhysicalType> getAll();

    PhysicalType getById(Integer id);

    List<PhysicalType> getByeId(Integer equipmentId);

	PhysicalType getByNameAndeId(String typeName, Integer equipmentId);

}
